<?php
/**
 * 作者: https://gitee.com/miren123
 * 时间: 2022-05-25 17:45:59
 * 描述: 设置管理
 */

namespace app\admin\controller;

use think\facade\Request;
use app\common\validate\AdminSettingValidate;
use app\common\service\AdminSettingService;
use hg\apidoc\annotation as Apidoc;

/**
 * @Apidoc\Title("其它设置")
 * @Apidoc\Group("adminSetting")
 * @Apidoc\Sort("55")
 */
class AdminSetting
{

    /**
     * @Apidoc\Title("缓存清除")
     * @Apidoc\Method("POST")
     * @Apidoc\Header(ref="headerAdmin")
     */
    public function cacheClear()
    {
        $data = AdminSettingService::cacheClear();

        return success($data, '缓存已清除');
    }

}
